package com.glsc.ngateway.common.base.domainmapper.cmdb;
import com.glsc.ngateway.common.base.domain.mysql.cmdb.CmdbMemoryStandard;
import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.cmdb.FlowFormNewMemoryStandardDetail;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: zhengyr
 * @Desc: domin到dto转换
 */
@Mapper(componentModel = "spring")
public interface FlowFormNewMemoryStandardMapper {

    FlowFormNewMemoryStandardMapper INSTANCE = Mappers.getMapper(FlowFormNewMemoryStandardMapper.class);

    @Mapping(target = "memoryStandardCode", ignore = true)
    @Mapping(target = "isDelete", ignore = true)
    CmdbMemoryStandard dto2domain(FlowFormNewMemoryStandardDetail dto);

    List<CmdbMemoryStandard> dto2domain(List<FlowFormNewMemoryStandardDetail> dto);
}
